package com.itheima.es_goods_demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_sku")
public class Goods implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String name;
    private Long price;
    private String image;
    private Date updateTime;
    private Integer categoryId;
    private String categoryName;
    private Long saleNum;
    private Long commentNum;

}
